import { createApp } from 'vue'
import './main.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/lib/locale/lang/zh-cn'
import App from './App.vue'
import router from './router/index'
import store from './store'

const app = createApp(App)

app.use(ElementPlus, { size: 'small', locale: zhCn, closeOnClickModal: false})

// 弹窗全局默认属性
app._context.components.ElDialog.props.closeOnClickModal.default = false;
app._context.components.ElDialog.props.appendToBody.default = true;

app.use(router)
app.use(store)

app.mount('#app')
